<!DOCTYPE html>
<html lang="en">
<head>
    <title>用户管理</title>
    <script src="/admin/js/jquery.min.js?v=2.1.4"></script>
    <link rel="stylesheet" type="text/css" href="/admin/js/simditor-2.3.6/styles/simditor.css" />
    <script type="text/javascript" src="/admin/js/simditor-2.3.6/scripts/module.js"></script>
    <script type="text/javascript" src="/admin/js/simditor-2.3.6/scripts/hotkeys.js"></script>
    <script type="text/javascript" src="/admin/js/simditor-2.3.6/scripts/uploader.js"></script>
    <script type="text/javascript" src="/admin/js/simditor-2.3.6/scripts/simditor.js"></script>
</head>
<body class="fixed-left">
<div id="wrapper">
    <#include "../header.html">
        <div class="content-page">
            <div class="content">
                <div class="container">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="panel panel-color panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title">添加用户</h3>
                                </div>
                                <div class="panel-body">
                                    <form class="form-horizontal" role="form" id="global-form" action="/admin/user/postadd" method="post">
                                        <div class="form-group">
                                            <label class="col-md-3 control-label">用户名</label>
                                            <div class="col-md-9">
                                                <textarea id="editor" name="content" class="form-control"></textarea>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</div>
<#include "../footer.html">
<script type="text/javascript">
    var editor;
    $(document).ready(function () {
        editor = new Simditor({
            textarea: $('#editor'),
            pasteImage: true,//允许粘贴图片
            upload:{
                url: '/upload/image',
                params: null,
                fileKey: 'upload_file',
                connectionCount: 3,
                leaveConfirm: '图片正在上传中，是否真的离开此页?'
            },
            toolbar: ['title','bold','italic','underline','strikethrough','fontScale','color','ol' ,'ul','blockquote','code','table','link','image','hr','indent','outdent','alignment']
        });
    });
</script>
</body>
</html>
